from meiduo_admin.mypackage import *

class AdminViewSet(ModelViewSet):
    queryset = User.objects.filter(is_staff=True)
    serializer_class = AdminModelSerializer
    pagination_class = MyPage

class AdminGroupView(ListAPIView):
    queryset = Group.objects.all()
    serializer_class = AdminGroupSimpleSerializer